package com.suneee.store.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import com.suneee.orm.annotation.Column;
import com.suneee.orm.annotation.Entity;
import com.suneee.orm.annotation.GeneratedValue;
import com.suneee.orm.annotation.Id;
import com.suneee.orm.annotation.Table;
import com.suneee.orm.annotation.Transient;

@Entity
@Table(name = "t_sku")
public class Sku implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8372738395908216613L;
	
	/**
	 * sku_id
	 */
	@Id
	@GeneratedValue
	@Column(name="sku_id",nullable=false)
	private Integer skuId;
	
	/**
	 * spu_id
	 */
	@Column(name="spu_id",nullable=false)
	private Integer spuId;
	
	/**
	 * 企业sku
	 */
	@Column(name="erp_sku")
	private String erpSku;
	
	/**
	 * 可分配库存
	 */
	@Column(name="stock")
	private Integer stock;
	
	/**
	 * 已分配库存
	 */
	@Column(name="assigned_stock")
	private Integer assignedStock;
	
	/**
	 * 零售价格
	 */
	@Column(name="price")
	private Float price;
	
	@Column(name="purchase_price")
	private Float purchasePrice;
	
	
	
	/**
	 * 规格一值
	 */
	@Column(name="spec_one_value")
	private String specOneValue;
	
	/**
	 * 规格二值
	 */
	@Column(name="spec_two_value")
	private String specTwoValue;
	
	/**
	 * 规格三值
	 */
	@Column(name="spec_three_value")
	private String specThreeValue;
	
	/**
	 * 规格四值
	 */
	@Column(name="spec_four_value")
	private String specFourValue;
	
	/**
	 * 状态
	 */
	@Column(name="status")
	private Integer status; 
	
	@Transient
	private Integer tempStock;
	
	@Column(name="create_user")
	private Integer createUser;
	
	@Column(name="update_user")
	private Integer updateUser;
	
	@Column(name="create_time")
	private Timestamp createTime;
	
	@Column(name="update_time")
	private Timestamp updateTime;
	
	public Integer getSkuId() {
		return skuId;
	}
	public void setSkuId(Integer skuId) {
		this.skuId = skuId;
	}
	public Integer getSpuId() {
		return spuId;
	}
	public void setSpuId(Integer spuId) {
		this.spuId = spuId;
	}
	public String getErpSku() {
		return erpSku;
	}
	public void setErpSku(String erpSku) {
		this.erpSku = erpSku;
	}
	public Integer getStock() {
		return stock;
	}
	public void setStock(Integer stock) {
		this.stock = stock;
	}
	public Integer getAssignedStock() {
		return assignedStock;
	}
	public void setAssignedStock(Integer assignedStock) {
		this.assignedStock = assignedStock;
	}
	public Float getPrice() {
		return price;
	}
	public void setPrice(Float price) {
		this.price = price;
	}
	
	public Float getPurchasePrice() {
		return purchasePrice;
	}
	public void setPurchasePrice(Float purchasePrice) {
		this.purchasePrice = purchasePrice;
	}
	public String getSpecOneValue() {
		return specOneValue;
	}
	public void setSpecOneValue(String specOneValue) {
		this.specOneValue = specOneValue;
	}
	public String getSpecTwoValue() {
		return specTwoValue;
	}
	public void setSpecTwoValue(String specTwoValue) {
		this.specTwoValue = specTwoValue;
	}
	public String getSpecThreeValue() {
		return specThreeValue;
	}
	public void setSpecThreeValue(String specThreeValue) {
		this.specThreeValue = specThreeValue;
	}
	public String getSpecFourValue() {
		return specFourValue;
	}
	public void setSpecFourValue(String specFourValue) {
		this.specFourValue = specFourValue;
	}
	public Integer getTempStock() {
		return tempStock;
	}
	public void setTempStock(Integer tempStock) {
		this.tempStock = tempStock;
	}
	public Integer getCreateUser() {
		return createUser;
	}
	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}
	public Integer getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(Integer updateUser) {
		this.updateUser = updateUser;
	}
	public Timestamp getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public Timestamp getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
}
